package com.sky.loveshop.mapper;

import com.sky.loveshop.entity.MeiTuanOrder;
import com.sky.loveshop.entity.qo.MtOrderInfoQO;
import com.sky.loveshop.entity.vo.MeiTuanOrderVO;
import com.sky.loveshop.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MeiTuanOrderMapper extends MyMapper<MeiTuanOrder> {

    Integer dealMtOrder(@Param("id") Integer id);

    List<MeiTuanOrderVO> searchAll(MtOrderInfoQO qo);

    MeiTuanOrder getMeiTuanOrderByOrderCode(@Param("orderCode") String orderCode, @Param("storeId") Integer storeId);

    MeiTuanOrder getMeiTuanOrderByPhoneCode(@Param("phoneCode") String phoneCode, @Param("storeId") Integer storeId);

    Integer markBrushFlag(@Param("id") Integer id);

    Integer updatePhoneCodeByPlatformOrderId(@Param("platformOrderId") String platformOrderId, @Param("phoneCode") String phoneCode);
}